﻿using System;
using System.Collections;
using System.Collections.Specialized;

namespace CenterDateAchieve.Test.Init
{
    /// <summary>
    /// 环境加载
    /// </summary>
    public class ServerContextFixure : ContextFixureBase
    {
        public ServerContextFixure()
        {
            string[] appPath = new string[]
               
                                   {
                                       @"file://~/data.xml"
                                        //,"assembly://CenterDateAchieve/CenterDateAchieve.Config/spring.xml"                                      
                                        , "assembly://BLL/BLL.Config/spring.xml"
                                       
			 ,"assembly://BLL.Action.Job/BLL.Action.Job.Config/spring.xml"
                                        // ,"assembly://BLL.Action.Job/BLL.Action.Job.Config/spring.xml" 

                                   };
            Init(appPath);
        }

        //public IApplicationContext AppContext
        //{
        //    get { return app_; }
        //    set { app_ = value; }
        //}
        private static ServerContextFixure instance_;
        public static ServerContextFixure GetInstance()
        {
            if (instance_ == null)
                instance_ = new ServerContextFixure();
            return instance_;
        }
    }
}